<template>
    <van-swipe :autoplay="3000" lazy-render>
        <van-swipe-item v-for="image in images" :key="image">
            <img :src="image" style="height: 200px; width: 100%;" />
        </van-swipe-item>
    </van-swipe>
</template>

<script setup>
// 利用 defineProps 完成组件传参
import { defineProps } from 'vue';
const props = defineProps({
    images:{
        type:Array
    }
})
</script>

<style lang="scss" scoped></style>